package com.taotao.portal.pojo;

import java.util.Date;


public class ItemInfo {
	private Long id;

	private String title;

	private String sellPoint;

	private Long price;

	private Integer num;

	private String barcode;
	
	private String image;

	private Long cid;

	private Byte status;
/*	{id=143771131488377,
			title=平板电视机,
			sellPoint=平板电视机, 
			price=209900,
			num=1222, 
			barcode=1234445, 
			image=http://192.168.43.23/images/2018/09/10/1536551252876073.jpg,http://192.168.43.23/images/2018/09/10/1536551253166170.jpg,http://192.168.43.23/images/2018/09/10/1536551253364267.jpg, 
				cid=153655129346940,
				status=1, 
				created=1536551293000,
				updated=1536551293000}
	}*/

	private Date created;

	private Date updated;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getSellPoint() {
		return sellPoint;
	}

	public void setSellPoint(String sellPoint) {
		this.sellPoint = sellPoint;
	}

	public Long getPrice() {
		return price;
	}

	public void setPrice(Long price) {
		this.price = price;
	}

	public Integer getNum() {
		return num;
	}

	public void setNum(Integer num) {
		this.num = num;
	}

	public String getBarcode() {
		return barcode;
	}

	public void setBarcode(String barcode) {
		this.barcode = barcode;
	}

	public String getImage() {
		return image;
	}

	public void setImage(String image) {
		this.image = image;
	}

	public Long getCid() {
		return cid;
	}

	public void setCid(Long cid) {
		this.cid = cid;
	}

	public Byte getStatus() {
		return status;
	}

	public void setStatus(Byte status) {
		this.status = status;
	}

	public Date getCreated() {
		return created;
	}

	public void setCreated(Date created) {
		this.created = created;
	}

	public Date getUpdated() {
		return updated;
	}

	public void setUpdated(Date updated) {
		this.updated = updated;
	}



	public String[] getImages() {
		String image = getImage();
		if (image != null) {
			String[] images = image.split(",");
			return images;
		}
		return null;
	}

}
